-------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/Wei/Dropbox/Fertility/Results/census_results.log
  log type:  text
 opened on:  21 Jan 2020, 10:43:18

. 
. set more off

. 
. use "$path2/marr_policy", clear

. 
. ren year yr_t

. gen year = year_birth +15

. merge m:1 prov year using "$path2/fines_economic", keepusing(lngdp_pc lngdp secondary primary)
(note: variable prov was byte, now float to accommodate using data's values)

    Result                           # of obs.
    -----------------------------------------
    not matched                           589
        from master                         0  (_merge==1)
        from using                        589  (_merge==2)

    matched                        11,547,566  (_merge==3)
    -----------------------------------------

. drop if _merge == 2 
(589 observations deleted)

. drop _merge 

. drop year

. ren yr_t year

. 
. egen fine_7_15 = rowmean(fine_age7-fine_age15)

. egen fine_8_15 = rowmean(fine_age8-fine_age15)

. egen fine_6_20 = rowmean(fine_age6-fine_age20)

. egen fine_16_22 = rowmean(fine_age6-fine_age20)

. 
. egen fine_6_18 = rowmean(fine_age6-fine_age18)

. egen fine_6_22 = rowmean(fine_age6-fine_age22)

. egen fine_8_20 = rowmean(fine_age8-fine_age20)

. egen fine_4_20 = rowmean(fine_age4-fine_age20)

. egen fine_1_20 = rowmean(fine_age1-fine_age20)

. 
. egen fine_4_22 = rowmean(fine_age4-fine_age22)

. 
. gl FINE_ALL = "fine_6_15 fine_16_20"

. 
. gl FINE_VAR_4 =  "fine_6_15 fine_16_20 fine_21_25"

. gl FINE_VAR_2 = "fine_6_20 fine_21_25"

. gl FINE_VAR_1 = "fine_6_20"

. gl FINE_8_22 = "fine_8_22"

. 
. replace nbroth = 99 if mi(nbroth)
(11,325,299 real changes made)

. replace nsister = 99 if mi(nsister)
(11,325,299 real changes made)

. 
. gen lnsec = ln(secondary)
(238,182 missing values generated)

. gen lnpri = ln(primary)
(352,981 missing values generated)

. gen lnsec_mi = mi(lnsec)

. gen lnpri_mi = mi(lnpri)

. egen mean_lnsec = mean(lnsec)

. egen mean_lnpri = mean(lnpri)

. replace lnsec = mean_lnsec if mi(lnsec)
(238,182 real changes made)

. replace lnpri = mean_lnpri if mi(lnpri)
(352,981 real changes made)

. la var fine_6_10 "Ages 6-10"

. la var fine_11_15 "Ages 11-15"

. la var fine_16_20 "Ages 16-20"

. la var fine_21_25 "Ages 21-25"

. la var fine_6_12 "Ages 6-12"

. la var fine_13_19 "Ages 13-19"

. la var fine_20_25 "Ages 20-25"

. 
. gen provid = prov 

. merge m:1 provid using "$path2/Comp_Law", keepusing(law_*) nogen 

    Result                           # of obs.
    -----------------------------------------
    not matched                             1
        from master                         0  
        from using                          1  

    matched                        11,547,566  
    -----------------------------------------

. 
. cap drop elig

. gen elig = 1 if year_birth >= law_year - 6 
(11,539,033 missing values generated)

. replace elig = 0 if year_birth <= law_year - 16
(10,501,045 real changes made)

. replace elig = (16-(law_year - year_birth ))/10 if law_year - 16<year_birth & year_birth<law_ye
> ar - 6 
(1,037,988 real changes made)

. drop provid

. 
. 
. gl CONTROL_1 = "women#prov##c.year_birth women#year#year_birth"

. gl CONTROL_2 = "women#prov##c.year_birth women#year#year_birth women#year#prov"

. 
. gen urban_hk = hktype == 2 

. gen urban_res = city_flag <= 2 if !mi(city_flag)
(4,140,909 missing values generated)

. replace urban_res = urban_hk if  mi(urban_res)
(4,140,909 real changes made)

. gen early_marr = 1-late_marr
(1 missing value generated)

. egen mean_gdp_pc = mean(lngdp_pc), by(prov)
(1 missing value generated)

. gen high_gdp_region = mean_gdp_pc >= 5.8

. 
. egen han_p = mean(han), by(year hhid prov region)
(1 missing value generated)

. replace high_occ = 0 if high_occ == . & !mi(work)
(1,603,442 real changes made)

. 
. * Table 1 Panel a 
. 
. su senior college early_marr work high_occ age [aw = wt] if women  // Table 1 panel a 

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      senior | 5668820     7871897    .1577345   .3644919          0          1
     college | 5668820     7871897    .0460877   .2096752          0          1
  early_marr | 5668820     7871897    .8935499   .3084128          0          1
        work | 5668820     7871897    .7676171   .4223519          0          1
    high_occ | 5668820     7871897    .0830444   .2759494          0          1
-------------+-----------------------------------------------------------------
         age | 5668820     7871897    39.56473   9.886067         25         65

. 
. * Table 2 & Table C5
. cap erase "$path3/tab_2_c5_c7.xls"

. cap erase "$path3/tab_2_c5_c7.txt"

. foreach sample in  "han""!han" {
  2. foreach x_var in  "$FINE_VAR_1" "$FINE_VAR_4"{
  3. foreach y_var in  "senior" "college" "early_marr" "work" "high_occ" {
  4. reghdfe `y_var' women#c.(`x_var') if `sample' [aw = wt], a($CONTROL_1) cluster(prov)
  5. su `y_var' if `sample' & women [aw = wt]
  6. local mean1 = r(mean)
  7. su `y_var' if `sample' & men [aw = wt]
  8. local mean2 = r(mean)
  9. cap testparm 1.women#c.(`x_var')
 10. cap local F_women = r(F)
 11. cap local p_women = r(p)
 12. cap testparm 0.women#c.(`x_var')
 13. cap local F_men = r(F)
 14. cap local p_men = r(p)
 15. outreg2 using "$path3/tab_2_c5_c7.xls", dec(3) append adds(Women, `mean1', Men, `mean2', F-m
> en, `F_men', P-men, `p_men', F-women, `F_women', P-women, `p_women')
 16. }
 17. }
 18. }
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   = 10,645,223
Absorbing 2 HDFE groups                           F(   2,     30) =       3.21
Statistics robust to heteroskedasticity           Prob > F        =     0.0543
                                                  R-squared       =     0.0720
                                                  Adj R-squared   =     0.0720
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.3821

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
           senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |   .0305929   .0142456     2.15   0.040     .0014995    .0596863
               1  |   .0448009   .0186448     2.40   0.023     .0067231    .0828787
                  |
            _cons |     .18102   .0057705    31.37   0.000     .1692351    .1928049
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      senior | 5224635     7212930    .1618858   .3683461          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      senior | 5420588     7394108    .2285598   .4199051          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   = 10,645,223
Absorbing 2 HDFE groups                           F(   2,     30) =       1.92
Statistics robust to heteroskedasticity           Prob > F        =     0.1647
                                                  R-squared       =     0.0334
                                                  Adj R-squared   =     0.0334
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2322

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
          college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |   .0176939   .0106179     1.67   0.106    -.0039908    .0393787
               1  |   .0174068    .009149     1.90   0.067     -.001278    .0360915
                  |
            _cons |   .0525003   .0037682    13.93   0.000     .0448046    .0601961
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     college | 5224635     7212930    .0469342   .2114979          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     college | 5420588     7394108    .0713284   .2573727          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   = 10,645,223
Absorbing 2 HDFE groups                           F(   2,     30) =       1.96
Statistics robust to heteroskedasticity           Prob > F        =     0.1586
                                                  R-squared       =     0.1413
                                                  Adj R-squared   =     0.1413
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.3656

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
       early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |  -.0312038   .0174973    -1.78   0.085    -.0669381    .0045306
               1  |  -.0292088   .0155016    -1.88   0.069    -.0608673    .0024497
                  |
            _cons |   .8188276   .0059167   138.39   0.000     .8067441    .8309111
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
  early_marr | 5224635     7212930    .8936664   .3082642          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
  early_marr | 5420588     7394108    .7227722   .4476299          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   = 10,645,223
Absorbing 2 HDFE groups                           F(   2,     30) =       1.49
Statistics robust to heteroskedasticity           Prob > F        =     0.2412
                                                  R-squared       =     0.1757
                                                  Adj R-squared   =     0.1757
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3365

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
             work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |  -.0116817    .009497    -1.23   0.228    -.0310772    .0077138
               1  |  -.0031001   .0124815    -0.25   0.806    -.0285906    .0223904
                  |
            _cons |   .8384935   .0040408   207.51   0.000     .8302412    .8467459
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
        work | 5224635     7212930    .7634907   .4249384          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
        work | 5420588     7394108    .9060709   .2917301          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   = 10,645,223
Absorbing 2 HDFE groups                           F(   2,     30) =       4.04
Statistics robust to heteroskedasticity           Prob > F        =     0.0279
                                                  R-squared       =     0.0275
                                                  Adj R-squared   =     0.0274
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3054

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
         high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |   .0157543   .0055749     2.83   0.008     .0043687    .0271398
               1  |   .0166601   .0093083     1.79   0.084      -.00235    .0356702
                  |
            _cons |   .1011485   .0025603    39.51   0.000     .0959198    .1063773
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    high_occ | 5224635     7212930    .0844969   .2781316          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    high_occ | 5420588     7394108    .1297727   .3360532          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   = 10,645,223
Absorbing 2 HDFE groups                           F(   6,     30) =       4.22
Statistics robust to heteroskedasticity           Prob > F        =     0.0034
                                                  R-squared       =     0.0720
                                                  Adj R-squared   =     0.0720
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.3821

                                        (Std. Err. adjusted for 31 clusters in prov)
------------------------------------------------------------------------------------
                   |               Robust
            senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
 women#c.fine_6_15 |
                0  |   .0259189   .0170103     1.52   0.138    -.0088207    .0606585
                1  |   .0411799   .0190324     2.16   0.039     .0023105    .0800493
                   |
women#c.fine_16_20 |
                0  |   .0076262   .0053723     1.42   0.166    -.0033455     .018598
                1  |   .0125343   .0061667     2.03   0.051    -.0000598    .0251285
                   |
women#c.fine_21_25 |
                0  |   .0045409   .0068832     0.66   0.514    -.0095165    .0185983
                1  |  -.0005254   .0079752    -0.07   0.948    -.0168131    .0157622
                   |
             _cons |   .1785032   .0090378    19.75   0.000     .1600456    .1969609
------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      senior | 5224635     7212930    .1618858   .3683461          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      senior | 5420588     7394108    .2285598   .4199051          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   = 10,645,223
Absorbing 2 HDFE groups                           F(   6,     30) =       2.67
Statistics robust to heteroskedasticity           Prob > F        =     0.0338
                                                  R-squared       =     0.0335
                                                  Adj R-squared   =     0.0335
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2322

                                        (Std. Err. adjusted for 31 clusters in prov)
------------------------------------------------------------------------------------
                   |               Robust
           college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
 women#c.fine_6_15 |
                0  |   .0057761   .0142211     0.41   0.688    -.0232672    .0348193
                1  |   .0046892   .0130076     0.36   0.721    -.0218759    .0312543
                   |
women#c.fine_16_20 |
                0  |   .0052419   .0033974     1.54   0.133    -.0016965    .0121803
                1  |   .0060228    .002723     2.21   0.035     .0004616     .011584
                   |
women#c.fine_21_25 |
                0  |   .0067721   .0027514     2.46   0.020     .0011531    .0123912
                1  |   .0046737   .0027247     1.72   0.097    -.0008909    .0102382
                   |
             _cons |   .0488711    .005351     9.13   0.000     .0379429    .0597994
------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     college | 5224635     7212930    .0469342   .2114979          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     college | 5420588     7394108    .0713284   .2573727          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   = 10,645,223
Absorbing 2 HDFE groups                           F(   6,     30) =       1.10
Statistics robust to heteroskedasticity           Prob > F        =     0.3865
                                                  R-squared       =     0.1413
                                                  Adj R-squared   =     0.1413
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.3656

                                        (Std. Err. adjusted for 31 clusters in prov)
------------------------------------------------------------------------------------
                   |               Robust
        early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
 women#c.fine_6_15 |
                0  |  -.0220164   .0252772    -0.87   0.391    -.0736394    .0296066
                1  |  -.0200233   .0181589    -1.10   0.279    -.0571086    .0170621
                   |
women#c.fine_16_20 |
                0  |  -.0099685   .0066209    -1.51   0.143    -.0234901    .0035531
                1  |  -.0097825    .004688    -2.09   0.046    -.0193567   -.0002082
                   |
women#c.fine_21_25 |
                0  |  -.0005494   .0064774    -0.08   0.933    -.0137781    .0126793
                1  |   .0005949    .004897     0.12   0.904    -.0094061    .0105959
                   |
             _cons |   .8189081   .0069444   117.92   0.000     .8047257    .8330904
------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
  early_marr | 5224635     7212930    .8936664   .3082642          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
  early_marr | 5420588     7394108    .7227722   .4476299          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   = 10,645,223
Absorbing 2 HDFE groups                           F(   6,     30) =       1.59
Statistics robust to heteroskedasticity           Prob > F        =     0.1833
                                                  R-squared       =     0.1757
                                                  Adj R-squared   =     0.1757
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3365

                                        (Std. Err. adjusted for 31 clusters in prov)
------------------------------------------------------------------------------------
                   |               Robust
              work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
 women#c.fine_6_15 |
                0  |  -.0125125   .0107419    -1.16   0.253    -.0344503    .0094254
                1  |   .0057468   .0119898     0.48   0.635    -.0187398    .0302333
                   |
women#c.fine_16_20 |
                0  |  -.0028841   .0023839    -1.21   0.236    -.0077526    .0019845
                1  |  -.0018759   .0036197    -0.52   0.608    -.0092683    .0055164
                   |
women#c.fine_21_25 |
                0  |   .0001476   .0037409     0.04   0.969    -.0074924    .0077875
                1  |  -.0032082   .0043767    -0.73   0.469    -.0121467    .0057302
                   |
             _cons |   .8394797   .0063773   131.64   0.000     .8264554    .8525039
------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
        work | 5224635     7212930    .7634907   .4249384          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
        work | 5420588     7394108    .9060709   .2917301          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   = 10,645,223
Absorbing 2 HDFE groups                           F(   6,     30) =       5.23
Statistics robust to heteroskedasticity           Prob > F        =     0.0009
                                                  R-squared       =     0.0275
                                                  Adj R-squared   =     0.0275
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.3054

                                        (Std. Err. adjusted for 31 clusters in prov)
------------------------------------------------------------------------------------
                   |               Robust
          high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
 women#c.fine_6_15 |
                0  |   .0062376    .008946     0.70   0.491    -.0120325    .0245077
                1  |   .0105317   .0092506     1.14   0.264    -.0083606     .029424
                   |
women#c.fine_16_20 |
                0  |   .0042608   .0019271     2.21   0.035     .0003252    .0081964
                1  |    .005075   .0029258     1.73   0.093    -.0009004    .0110503
                   |
women#c.fine_21_25 |
                0  |   .0065802   .0018849     3.49   0.002     .0027308    .0104295
                1  |   .0021237   .0020627     1.03   0.311    -.0020889    .0063363
                   |
             _cons |   .0980999   .0036765    26.68   0.000     .0905915    .1056084
------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    high_occ | 5224635     7212930    .0844969   .2781316          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    high_occ | 5420588     7394108    .1297727   .3360532          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =    902,343
Absorbing 2 HDFE groups                           F(   2,     30) =       1.68
Statistics robust to heteroskedasticity           Prob > F        =     0.2031
                                                  R-squared       =     0.0828
                                                  Adj R-squared   =     0.0825
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3305

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
           senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |  -.0103968   .0189647    -0.55   0.588     -.049128    .0283343
               1  |   .0102374    .009841     1.04   0.307    -.0098606    .0303353
                  |
            _cons |    .138154   .0063159    21.87   0.000     .1252552    .1510528
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      senior | 444,185      658967    .1122955     .31573          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      senior | 458,158      677668    .1632304   .3695761          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =    902,343
Absorbing 2 HDFE groups                           F(   2,     30) =       0.26
Statistics robust to heteroskedasticity           Prob > F        =     0.7733
                                                  R-squared       =     0.0360
                                                  Adj R-squared   =     0.0356
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.2045

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
          college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |    -.00043   .0106084    -0.04   0.968    -.0220952    .0212353
               1  |    .003164   .0067908     0.47   0.645    -.0107045    .0170326
                  |
            _cons |   .0447662   .0039101    11.45   0.000     .0367807    .0527516
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     college | 444,185      658967    .0368228   .1883267          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     college | 458,158      677668    .0537918   .2256067          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =    902,343
Absorbing 2 HDFE groups                           F(   2,     30) =       0.53
Statistics robust to heteroskedasticity           Prob > F        =     0.5951
                                                  R-squared       =     0.1206
                                                  Adj R-squared   =     0.1203
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3685

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
       early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |  -.0042415   .0205953    -0.21   0.838    -.0463026    .0378197
               1  |  -.0138987   .0156501    -0.89   0.382    -.0458604    .0180631
                  |
            _cons |    .813663   .0079905   101.83   0.000     .7973441    .8299818
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
  early_marr | 444,185      658967    .8922753   .3100327          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
  early_marr | 458,158      677668    .7285898   .4446877          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =    902,343
Absorbing 2 HDFE groups                           F(   2,     30) =       6.80
Statistics robust to heteroskedasticity           Prob > F        =     0.0037
                                                  R-squared       =     0.1671
                                                  Adj R-squared   =     0.1668
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.3127

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
             work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |   .0219782   .0115967     1.90   0.068    -.0017054    .0456618
               1  |  -.0127964   .0200795    -0.64   0.529    -.0538042    .0282115
                  |
            _cons |   .8619751   .0071941   119.82   0.000     .8472828    .8766674
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
        work | 444,185      658967    .8127843   .3900851          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
        work | 458,158      677668     .914163   .2801235          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =    902,343
Absorbing 2 HDFE groups                           F(   2,     30) =       0.05
Statistics robust to heteroskedasticity           Prob > F        =     0.9552
                                                  R-squared       =     0.0290
                                                  Adj R-squared   =     0.0286
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.2763

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
         high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |   .0013324      .0092     0.14   0.886    -.0174564    .0201212
               1  |  -.0014879   .0093361    -0.16   0.874    -.0205547    .0175789
                  |
            _cons |   .0859911   .0038647    22.25   0.000     .0780984    .0938839
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    high_occ | 444,185      658967     .067146    .250275          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    high_occ | 458,158      677668    .1042413   .3055737          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =    902,343
Absorbing 2 HDFE groups                           F(   6,     30) =       1.25
Statistics robust to heteroskedasticity           Prob > F        =     0.3075
                                                  R-squared       =     0.0829
                                                  Adj R-squared   =     0.0826
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.3305

                                        (Std. Err. adjusted for 31 clusters in prov)
------------------------------------------------------------------------------------
                   |               Robust
            senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
 women#c.fine_6_15 |
                0  |   -.016591   .0223779    -0.74   0.464    -.0622928    .0291109
                1  |  -.0057276   .0147722    -0.39   0.701    -.0358965    .0244413
                   |
women#c.fine_16_20 |
                0  |  -.0020412   .0059764    -0.34   0.735    -.0142466    .0101643
                1  |   .0049453   .0028617     1.73   0.094     -.000899    .0107896
                   |
women#c.fine_21_25 |
                0  |   .0045366    .007269     0.62   0.537    -.0103087    .0193819
                1  |   .0085552   .0050862     1.68   0.103    -.0018322    .0189425
                   |
             _cons |   .1330479   .0104041    12.79   0.000     .1117999    .1542959
------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      senior | 444,185      658967    .1122955     .31573          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      senior | 458,158      677668    .1632304   .3695761          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =    902,343
Absorbing 2 HDFE groups                           F(   6,     30) =       1.17
Statistics robust to heteroskedasticity           Prob > F        =     0.3479
                                                  R-squared       =     0.0361
                                                  Adj R-squared   =     0.0357
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2045

                                        (Std. Err. adjusted for 31 clusters in prov)
------------------------------------------------------------------------------------
                   |               Robust
           college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
 women#c.fine_6_15 |
                0  |  -.0154787   .0119545    -1.29   0.205    -.0398931    .0089356
                1  |  -.0066897   .0071022    -0.94   0.354    -.0211944     .007815
                   |
women#c.fine_16_20 |
                0  |   .0023919   .0029539     0.81   0.424    -.0036408    .0084246
                1  |   .0025815   .0023078     1.12   0.272    -.0021316    .0072946
                   |
women#c.fine_21_25 |
                0  |   .0053673   .0026619     2.02   0.053    -.0000692    .0108037
                1  |   .0031168   .0023113     1.35   0.188    -.0016035    .0078372
                   |
             _cons |    .042206   .0057457     7.35   0.000     .0304718    .0539402
------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     college | 444,185      658967    .0368228   .1883267          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     college | 458,158      677668    .0537918   .2256067          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =    902,343
Absorbing 2 HDFE groups                           F(   6,     30) =       0.62
Statistics robust to heteroskedasticity           Prob > F        =     0.7089
                                                  R-squared       =     0.1206
                                                  Adj R-squared   =     0.1203
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3685

                                        (Std. Err. adjusted for 31 clusters in prov)
------------------------------------------------------------------------------------
                   |               Robust
        early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
 women#c.fine_6_15 |
                0  |   .0117703   .0273026     0.43   0.669     -.043989    .0675296
                1  |   .0018359   .0142462     0.13   0.898    -.0272586    .0309305
                   |
women#c.fine_16_20 |
                0  |  -.0047032   .0075314    -0.62   0.537    -.0200844     .010678
                1  |  -.0073099   .0052984    -1.38   0.178    -.0181308    .0035109
                   |
women#c.fine_21_25 |
                0  |  -.0000446   .0049932    -0.01   0.993    -.0102422    .0101529
                1  |   .0008476    .004926     0.17   0.865    -.0092127    .0109078
                   |
             _cons |   .8112434   .0113307    71.60   0.000      .788103    .8343837
------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
  early_marr | 444,185      658967    .8922753   .3100327          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
  early_marr | 458,158      677668    .7285898   .4446877          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =    902,343
Absorbing 2 HDFE groups                           F(   6,     30) =       7.87
Statistics robust to heteroskedasticity           Prob > F        =     0.0000
                                                  R-squared       =     0.1672
                                                  Adj R-squared   =     0.1669
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.3127

                                        (Std. Err. adjusted for 31 clusters in prov)
------------------------------------------------------------------------------------
                   |               Robust
              work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
 women#c.fine_6_15 |
                0  |   .0251282   .0105307     2.39   0.024     .0036217    .0466347
                1  |  -.0183686   .0190969    -0.96   0.344    -.0573697    .0206326
                   |
women#c.fine_16_20 |
                0  |   .0037216   .0035571     1.05   0.304    -.0035429    .0109862
                1  |  -.0030195   .0061072    -0.49   0.625    -.0154921     .009453
                   |
women#c.fine_21_25 |
                0  |   .0074208   .0035418     2.10   0.045     .0001874    .0146542
                1  |   .0064208   .0048468     1.32   0.195    -.0034777    .0163192
                   |
             _cons |   .8546978   .0101231    84.43   0.000     .8340236     .875372
------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
        work | 444,185      658967    .8127843   .3900851          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
        work | 458,158      677668     .914163   .2801235          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =    902,343
Absorbing 2 HDFE groups                           F(   6,     30) =       3.81
Statistics robust to heteroskedasticity           Prob > F        =     0.0061
                                                  R-squared       =     0.0291
                                                  Adj R-squared   =     0.0287
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2762

                                        (Std. Err. adjusted for 31 clusters in prov)
------------------------------------------------------------------------------------
                   |               Robust
          high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
 women#c.fine_6_15 |
                0  |  -.0097544   .0099737    -0.98   0.336    -.0301234    .0106145
                1  |   -.013788   .0110389    -1.25   0.221    -.0363324    .0087564
                   |
women#c.fine_16_20 |
                0  |   .0016593   .0028634     0.58   0.567    -.0041885    .0075072
                1  |   .0012518   .0024537     0.51   0.614    -.0037592    .0062629
                   |
women#c.fine_21_25 |
                0  |   .0071206   .0027599     2.58   0.015     .0014842     .012757
                1  |   .0075416   .0018031     4.18   0.000     .0038591    .0112241
                   |
             _cons |   .0801615   .0050063    16.01   0.000     .0699373    .0903857
------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    high_occ | 444,185      658967     .067146    .250275          0          1

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    high_occ | 458,158      677668    .1042413   .3055737          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_2_c5_c7.xls
dir : seeout

. 
. cap erase "$path3/tab_c3_part1.xls"

. cap erase "$path3/tab_c3_part1.txt"

. preserve

. keep if women == 1 
(5,878,747 observations deleted)

. foreach y_var in  "senior" "college" "early_marr" "work" "high_occ" {
  2.  
. reghdfe `y_var' women#c.(fine_6_18) if han [aw = wt], a($CONTROL_1) cluster(prov)
  3. outreg2 using "$path3/tab_c3_part1.xls", dec(3) append 
  4. reghdfe `y_var' women#c.(fine_6_22) if han [aw = wt], a($CONTROL_1) cluster(prov)
  5. outreg2 using "$path3/tab_c3_part1.xls", dec(3) append 
  6. reghdfe `y_var' women#c.(fine_8_20) if han [aw = wt], a($CONTROL_1) cluster(prov)
  7. outreg2 using "$path3/tab_c3_part1.xls", dec(3) append 
  8. reghdfe `y_var' women#c.(fine_4_20) if han [aw = wt], a($CONTROL_1) cluster(prov)
  9. outreg2 using "$path3/tab_c3_part1.xls", dec(3) append 
 10. reghdfe `y_var' women#c.(fine_1_20) if han [aw = wt], a($CONTROL_1) cluster(prov)
 11. outreg2 using "$path3/tab_c3_part1.xls", dec(3) append 
 12. reghdfe `y_var' women#c.(fine_4_22) if han [aw = wt], a($CONTROL_1) cluster(prov)
 13. outreg2 using "$path3/tab_c3_part1.xls", dec(3) append 
 14.  
. }
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       7.50
Statistics robust to heteroskedasticity           Prob > F        =     0.0103
                                                  R-squared       =     0.0753
                                                  Adj R-squared   =     0.0753
                                                  Within R-sq.    =     0.0002
Number of clusters (prov)    =         31         Root MSE        =     0.3542

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
           senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_18 |
               1  |   .0492734   .0179936     2.74   0.010     .0125255    .0860213
                  |
            _cons |    .144832   .0062277    23.26   0.000     .1321133    .1575507
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       3.96
Statistics robust to heteroskedasticity           Prob > F        =     0.0559
                                                  R-squared       =     0.0753
                                                  Adj R-squared   =     0.0753
                                                  Within R-sq.    =     0.0002
Number of clusters (prov)    =         31         Root MSE        =     0.3542

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
           senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_22 |
               1  |   .0383756   .0192949     1.99   0.056    -.0010299    .0777811
                  |
            _cons |   .1445189   .0087319    16.55   0.000      .126686    .1623519
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       5.92
Statistics robust to heteroskedasticity           Prob > F        =     0.0211
                                                  R-squared       =     0.0753
                                                  Adj R-squared   =     0.0753
                                                  Within R-sq.    =     0.0002
Number of clusters (prov)    =         31         Root MSE        =     0.3542

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
           senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_8_20 |
               1  |   .0389655   .0160109     2.43   0.021      .006267    .0716641
                  |
            _cons |   .1448151   .0070143    20.65   0.000       .13049    .1591403
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       5.60
Statistics robust to heteroskedasticity           Prob > F        =     0.0247
                                                  R-squared       =     0.0753
                                                  Adj R-squared   =     0.0753
                                                  Within R-sq.    =     0.0002
Number of clusters (prov)    =         31         Root MSE        =     0.3542

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
           senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_4_20 |
               1  |     .04986   .0210767     2.37   0.025     .0068157    .0929043
                  |
            _cons |   .1438787   .0076119    18.90   0.000     .1283332    .1594243
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       5.46
Statistics robust to heteroskedasticity           Prob > F        =     0.0263
                                                  R-squared       =     0.0753
                                                  Adj R-squared   =     0.0753
                                                  Within R-sq.    =     0.0002
Number of clusters (prov)    =         31         Root MSE        =     0.3542

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
           senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_1_20 |
               1  |   .0576184   .0246555     2.34   0.026     .0072651    .1079717
                  |
            _cons |   .1438486   .0077183    18.64   0.000     .1280857    .1596115
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       3.85
Statistics robust to heteroskedasticity           Prob > F        =     0.0591
                                                  R-squared       =     0.0753
                                                  Adj R-squared   =     0.0753
                                                  Within R-sq.    =     0.0002
Number of clusters (prov)    =         31         Root MSE        =     0.3542

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
           senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_4_22 |
               1  |   .0421523   .0214854     1.96   0.059    -.0017268    .0860314
                  |
            _cons |   .1444409   .0088918    16.24   0.000     .1262814    .1626004
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       2.13
Statistics robust to heteroskedasticity           Prob > F        =     0.1544
                                                  R-squared       =     0.0391
                                                  Adj R-squared   =     0.0391
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2073

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
          college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_18 |
               1  |   .0147465   .0100931     1.46   0.154    -.0058664    .0353593
                  |
            _cons |   .0418303   .0034933    11.97   0.000     .0346961    .0489646
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       4.47
Statistics robust to heteroskedasticity           Prob > F        =     0.0429
                                                  R-squared       =     0.0392
                                                  Adj R-squared   =     0.0392
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2073

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
          college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_22 |
               1  |   .0182399   .0086243     2.11   0.043     .0006268    .0358531
                  |
            _cons |   .0386797   .0039029     9.91   0.000     .0307089    .0466505
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       4.17
Statistics robust to heteroskedasticity           Prob > F        =     0.0500
                                                  R-squared       =     0.0392
                                                  Adj R-squared   =     0.0391
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2073

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
          college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_8_20 |
               1  |   .0160479    .007858     2.04   0.050    -2.36e-07    .0320961
                  |
            _cons |   .0399037   .0034426    11.59   0.000      .032873    .0469343
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       3.19
Statistics robust to heteroskedasticity           Prob > F        =     0.0844
                                                  R-squared       =     0.0392
                                                  Adj R-squared   =     0.0391
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2073

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
          college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_4_20 |
               1  |   .0185252   .0103796     1.78   0.084    -.0026728    .0397232
                  |
            _cons |   .0402438   .0037486    10.74   0.000      .032588    .0478995
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       3.15
Statistics robust to heteroskedasticity           Prob > F        =     0.0861
                                                  R-squared       =     0.0392
                                                  Adj R-squared   =     0.0391
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2073

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
          college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_1_20 |
               1  |   .0213903   .0120527     1.77   0.086    -.0032247    .0460053
                  |
            _cons |    .040238   .0037731    10.66   0.000     .0325324    .0479437
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       4.17
Statistics robust to heteroskedasticity           Prob > F        =     0.0500
                                                  R-squared       =     0.0392
                                                  Adj R-squared   =     0.0391
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2073

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
          college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_4_22 |
               1  |   .0194606   .0095268     2.04   0.050     4.18e-06    .0389169
                  |
            _cons |   .0388804   .0039427     9.86   0.000     .0308283    .0469325
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       3.46
Statistics robust to heteroskedasticity           Prob > F        =     0.0729
                                                  R-squared       =     0.0744
                                                  Adj R-squared   =     0.0744
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2966

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
       early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_18 |
               1  |  -.0320062   .0172163    -1.86   0.073    -.0671666    .0031542
                  |
            _cons |   .9047439   .0059587   151.84   0.000     .8925747    .9169131
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       2.89
Statistics robust to heteroskedasticity           Prob > F        =     0.0997
                                                  R-squared       =     0.0744
                                                  Adj R-squared   =     0.0744
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2966

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
       early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_22 |
               1  |   -.024443   .0143879    -1.70   0.100     -.053827    .0049411
                  |
            _cons |    .904728   .0065112   138.95   0.000     .8914303    .9180258
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       3.37
Statistics robust to heteroskedasticity           Prob > F        =     0.0764
                                                  R-squared       =     0.0744
                                                  Adj R-squared   =     0.0744
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2966

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
       early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_8_20 |
               1  |  -.0249548   .0135963    -1.84   0.076    -.0527222    .0028126
                  |
            _cons |    .904599   .0059565   151.87   0.000     .8924342    .9167638
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       3.67
Statistics robust to heteroskedasticity           Prob > F        =     0.0651
                                                  R-squared       =     0.0744
                                                  Adj R-squared   =     0.0744
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2966

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
       early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_4_20 |
               1  |  -.0329351   .0172002    -1.91   0.065    -.0680625    .0021923
                  |
            _cons |    .905561   .0062119   145.78   0.000     .8928746    .9182473
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       3.78
Statistics robust to heteroskedasticity           Prob > F        =     0.0612
                                                  R-squared       =     0.0744
                                                  Adj R-squared   =     0.0744
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2966

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
       early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_1_20 |
               1  |   -.038532   .0198079    -1.95   0.061    -.0789851    .0019211
                  |
            _cons |   .9057287   .0062008   146.07   0.000      .893065    .9183924
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       2.95
Statistics robust to heteroskedasticity           Prob > F        =     0.0961
                                                  R-squared       =     0.0744
                                                  Adj R-squared   =     0.0744
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2966

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
       early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_4_22 |
               1  |  -.0271584   .0158098    -1.72   0.096    -.0594463    .0051294
                  |
            _cons |    .904906   .0065429   138.30   0.000     .8915436    .9182684
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       0.00
Statistics robust to heteroskedasticity           Prob > F        =     0.9843
                                                  R-squared       =     0.1567
                                                  Adj R-squared   =     0.1567
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3902

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
             work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_18 |
               1  |  -.0002526   .0127462    -0.02   0.984    -.0262838    .0257785
                  |
            _cons |   .7635781   .0044115   173.09   0.000     .7545686    .7725877
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       0.18
Statistics robust to heteroskedasticity           Prob > F        =     0.6704
                                                  R-squared       =     0.1567
                                                  Adj R-squared   =     0.1567
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3902

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
             work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_22 |
               1  |  -.0053808   .0125205    -0.43   0.670    -.0309511    .0201895
                  |
            _cons |   .7659258   .0056662   135.18   0.000     .7543539    .7774976
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       0.08
Statistics robust to heteroskedasticity           Prob > F        =     0.7729
                                                  R-squared       =     0.1567
                                                  Adj R-squared   =     0.1567
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3902

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
             work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_8_20 |
               1  |  -.0030999   .0106472    -0.29   0.773    -.0248444    .0186446
                  |
            _cons |   .7648488   .0046645   163.97   0.000     .7553226     .774375
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       0.03
Statistics robust to heteroskedasticity           Prob > F        =     0.8556
                                                  R-squared       =     0.1567
                                                  Adj R-squared   =     0.1567
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3902

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
             work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_4_20 |
               1  |   -.002605   .0141922    -0.18   0.856    -.0315893    .0263794
                  |
            _cons |   .7644315   .0051256   149.14   0.000     .7539637    .7748993
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       0.02
Statistics robust to heteroskedasticity           Prob > F        =     0.8961
                                                  R-squared       =     0.1567
                                                  Adj R-squared   =     0.1567
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3902

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
             work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_1_20 |
               1  |  -.0021858   .0166013    -0.13   0.896    -.0360903    .0317187
                  |
            _cons |    .764175    .005197   147.04   0.000     .7535613    .7747886
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       0.14
Statistics robust to heteroskedasticity           Prob > F        =     0.7063
                                                  R-squared       =     0.1567
                                                  Adj R-squared   =     0.1567
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3902

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
             work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_4_22 |
               1  |  -.0053266   .0139988    -0.38   0.706     -.033916    .0232628
                  |
            _cons |   .7656951   .0057935   132.17   0.000     .7538633     .777527
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       2.86
Statistics robust to heteroskedasticity           Prob > F        =     0.1011
                                                  R-squared       =     0.0279
                                                  Adj R-squared   =     0.0279
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.2742

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
         high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_18 |
               1  |   .0159444   .0094256     1.69   0.101    -.0033052     .035194
                  |
            _cons |   .0789784   .0032622    24.21   0.000      .072316    .0856408
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       2.88
Statistics robust to heteroskedasticity           Prob > F        =     0.0999
                                                  R-squared       =     0.0279
                                                  Adj R-squared   =     0.0279
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.2742

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
         high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_22 |
               1  |   .0155546   .0091626     1.70   0.100    -.0031579    .0342671
                  |
            _cons |   .0774576   .0041465    18.68   0.000     .0689893     .085926
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       3.57
Statistics robust to heteroskedasticity           Prob > F        =     0.0684
                                                  R-squared       =     0.0279
                                                  Adj R-squared   =     0.0279
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2742

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
         high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_8_20 |
               1  |   .0151256   .0080014     1.89   0.068    -.0012155    .0314667
                  |
            _cons |   .0778704   .0035054    22.21   0.000     .0707114    .0850294
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       2.94
Statistics robust to heteroskedasticity           Prob > F        =     0.0968
                                                  R-squared       =     0.0279
                                                  Adj R-squared   =     0.0279
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.2742

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
         high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_4_20 |
               1  |   .0181279   .0105747     1.71   0.097    -.0034685    .0397242
                  |
            _cons |   .0779499   .0038191    20.41   0.000     .0701504    .0857495
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       2.82
Statistics robust to heteroskedasticity           Prob > F        =     0.1034
                                                  R-squared       =     0.0279
                                                  Adj R-squared   =     0.0279
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.2742

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
         high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_1_20 |
               1  |   .0207398    .012349     1.68   0.103    -.0044801    .0459597
                  |
            _cons |   .0780043   .0038658    20.18   0.000     .0701093    .0858993
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  5,224,635
Absorbing 2 HDFE groups                           F(   1,     30) =       2.70
Statistics robust to heteroskedasticity           Prob > F        =     0.1111
                                                  R-squared       =     0.0279
                                                  Adj R-squared   =     0.0279
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.2742

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
         high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_4_22 |
               1  |   .0167989   .0102317     1.64   0.111    -.0040971    .0376949
                  |
            _cons |   .0775446   .0042344    18.31   0.000     .0688967    .0861925
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c3_part1.xls
dir : seeout

. restore

. 
. 
. cap erase "$path3/tab_c4.xls"

. cap erase "$path3/tab_c4.txt"

. 
. foreach sample in "han" "han & age <= 30" "han & age > 30"{
  2. foreach y_var in "married_ever"   {
  3. foreach x_var in "$FINE_VAR_1"{
  4. reghdfe `y_var' women#c.(`x_var') if `sample'  [aw = wt], a($CONTROL_1) cluster(prov)
  5. cap su `y_var' if `sample' & women [aw = wt]
  6. cap local mean1 = r(mean)
  7. cap su `y_var' if `sample' & men [aw = wt]
  8. cap local mean2 = r(mean)
  9. cap testparm 1.women#c.(`x_var')
 10. cap local F_women = r(F)
 11. cap local p_women = r(p)
 12. cap testparm 0.women#c.(`x_var')
 13. cap local F_men = r(F)
 14. cap local p_men = r(p)
 15. outreg2 using "$path3/tab_c4.xls", dec(3) append adds(Women, `mean1', Men, `mean2', F-men, `
> F_men', P-men, `p_men', F-women, `F_women', P-women, `p_women')
 16. }
 17. }
 18. }
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   = 10,645,223
Absorbing 2 HDFE groups                           F(   2,     30) =       3.28
Statistics robust to heteroskedasticity           Prob > F        =     0.0515
                                                  R-squared       =     0.1249
                                                  Adj R-squared   =     0.1248
                                                  Within R-sq.    =     0.0008
Number of clusters (prov)    =         31         Root MSE        =     0.2078

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
     married_ever |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |  -.0618021   .0242393    -2.55   0.016    -.1113055   -.0122988
               1  |  -.0410295   .0191583    -2.14   0.040    -.0801559   -.0019031
                  |
            _cons |   .9677682   .0079022   122.47   0.000     .9516297    .9839067
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       206           0         206    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c4.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  2,490,868
Absorbing 2 HDFE groups                           F(   2,     30) =       3.87
Statistics robust to heteroskedasticity           Prob > F        =     0.0321
                                                  R-squared       =     0.1319
                                                  Adj R-squared   =     0.1318
                                                  Within R-sq.    =     0.0004
Number of clusters (prov)    =         31         Root MSE        =     0.3299

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
     married_ever |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |  -.0740118   .0290514    -2.55   0.016    -.1333427   -.0146809
               1  |  -.0481887   .0178573    -2.70   0.011    -.0846582   -.0117192
                  |
            _cons |   .9117083   .0213705    42.66   0.000     .8680639    .9553527
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |        36           0          36    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c4.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  8,154,355
Absorbing 2 HDFE groups                           F(   2,     30) =       1.66
Statistics robust to heteroskedasticity           Prob > F        =     0.2069
                                                  R-squared       =     0.0284
                                                  Adj R-squared   =     0.0284
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.1595

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
     married_ever |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               0  |  -.0256792   .0162168    -1.58   0.124    -.0587983    .0074399
               1  |  -.0130179   .0084815    -1.53   0.135    -.0303395    .0043037
                  |
            _cons |   .9775913   .0024976   391.41   0.000     .9724905     .982692
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        62          62           0    *|
   women#prov#c.year_birth |        62           0          62     |
     women#year#year_birth |       170           0         170    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
/Users/Wei/Dropbox/Fertility/Results/tab_c4.xls
dir : seeout

. 
. 
. 
. ** Table C9, Rows A-F ***
. 
. cap drop urban rural 

. gen urban = hktype == 2

. gen rural = hktype == 1

. 
. cap erase  "$path3/tab_c9_a_f.xls"

. cap erase  "$path3/tab_c9_a_f.txt"

. 
. preserve 

. keep if women == 1 
(5,878,747 observations deleted)

. foreach y_var in  "senior" "college"  "married_ever" "early_marr" "work" "high_occ" {
  2. foreach sample in "!rural" "rural" {
  3. reghdfe `y_var' women#c.fine_6_20    if han & `sample'  [aw = wt], a($CONTROL_1)  cluster(pr
> ov)
  4. su `y_var'  if han & `sample'  [aw = wt]
  5. outreg2 using "$path3/tab_c9_a_f.xls", dec(3) append adds(Mean, `r(mean)')
  6. 
. }
  7. }
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  1,379,728
Absorbing 2 HDFE groups                           F(   1,     30) =       3.43
Statistics robust to heteroskedasticity           Prob > F        =     0.0737
                                                  R-squared       =     0.1186
                                                  Adj R-squared   =     0.1185
                                                  Within R-sq.    =     0.0003
Number of clusters (prov)    =         31         Root MSE        =     0.4684

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
           senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |   .0589596   .0318128     1.85   0.074    -.0060107    .1239299
                  |
            _cons |   .4416221   .0135919    32.49   0.000     .4138637    .4693804
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      senior | 1379728     2008276    .4668123   .4988975          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  3,844,907
Absorbing 2 HDFE groups                           F(   1,     30) =       1.35
Statistics robust to heteroskedasticity           Prob > F        =     0.2543
                                                  R-squared       =     0.0340
                                                  Adj R-squared   =     0.0340
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2021

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
           senior |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |   .0203541    .017514     1.16   0.254    -.0154143    .0561224
                  |
            _cons |   .0363557   .0067725     5.37   0.000     .0225244    .0501869
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
      senior | 3844907     5204654    .0442264   .2055977          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  1,379,728
Absorbing 2 HDFE groups                           F(   1,     30) =       0.51
Statistics robust to heteroskedasticity           Prob > F        =     0.4799
                                                  R-squared       =     0.0666
                                                  Adj R-squared   =     0.0665
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3576

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
          college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |    .012411   .0173481     0.72   0.480    -.0230185    .0478406
                  |
            _cons |   .1585325   .0074119    21.39   0.000     .1433953    .1736696
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     college | 1379728     2008276    .1638351    .370126          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  3,844,907
Absorbing 2 HDFE groups                           F(   1,     30) =       4.23
Statistics robust to heteroskedasticity           Prob > F        =     0.0486
                                                  R-squared       =     0.0076
                                                  Adj R-squared   =     0.0076
                                                  Within R-sq.    =     0.0003
Number of clusters (prov)    =         31         Root MSE        =     0.0425

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
          college |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |   .0066156   .0032182     2.06   0.049     .0000432    .0131879
                  |
            _cons |  -.0007315   .0012444    -0.59   0.561     -.003273    .0018099
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
     college | 3844907     5204654    .0018266   .0427001          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  1,379,728
Absorbing 2 HDFE groups                           F(   1,     30) =       3.73
Statistics robust to heteroskedasticity           Prob > F        =     0.0630
                                                  R-squared       =     0.1539
                                                  Adj R-squared   =     0.1538
                                                  Within R-sq.    =     0.0009
Number of clusters (prov)    =         31         Root MSE        =     0.1772

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
     married_ever |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |  -.0407152   .0210906    -1.93   0.063     -.083788    .0023575
                  |
            _cons |   .9788111   .0090109   108.63   0.000     .9604084    .9972138
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
married_ever | 1379728     2008276    .9614157   .1926022          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  3,844,907
Absorbing 2 HDFE groups                           F(   1,     30) =       2.39
Statistics robust to heteroskedasticity           Prob > F        =     0.1328
                                                  R-squared       =     0.0853
                                                  Adj R-squared   =     0.0853
                                                  Within R-sq.    =     0.0010
Number of clusters (prov)    =         31         Root MSE        =     0.1091

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
     married_ever |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |  -.0339779   .0219911    -1.55   0.133    -.0788898    .0109339
                  |
            _cons |   .9999417   .0085037   117.59   0.000     .9825747    1.017309
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
married_ever | 3844907     5204654    .9868028   .1141186          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  1,379,728
Absorbing 2 HDFE groups                           F(   1,     30) =       1.06
Statistics robust to heteroskedasticity           Prob > F        =     0.3122
                                                  R-squared       =     0.1108
                                                  Adj R-squared   =     0.1107
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.3814

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
       early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |  -.0305955   .0297636    -1.03   0.312    -.0913809    .0301899
                  |
            _cons |   .8070409   .0127164    63.46   0.000     .7810705    .8330112
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
  early_marr | 1379728     2008276    .7939691   .4044531          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  3,844,907
Absorbing 2 HDFE groups                           F(   1,     30) =       2.44
Statistics robust to heteroskedasticity           Prob > F        =     0.1289
                                                  R-squared       =     0.0508
                                                  Adj R-squared   =     0.0508
                                                  Within R-sq.    =     0.0001
Number of clusters (prov)    =         31         Root MSE        =     0.2450

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
       early_marr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |  -.0197414   .0126444    -1.56   0.129    -.0455647    .0060818
                  |
            _cons |   .9397696   .0048895   192.20   0.000      .929784    .9497551
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
  early_marr | 3844907     5204654    .9321357   .2515129          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  1,379,728
Absorbing 2 HDFE groups                           F(   1,     30) =       1.07
Statistics robust to heteroskedasticity           Prob > F        =     0.3085
                                                  R-squared       =     0.2690
                                                  Adj R-squared   =     0.2689
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.4147

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
             work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |   .0191093   .0184452     1.04   0.308    -.0185608    .0567794
                  |
            _cons |    .613187   .0078806    77.81   0.000     .5970925    .6292814
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
        work | 1379728     2008276    .6213513   .4850505          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  3,844,907
Absorbing 2 HDFE groups                           F(   1,     30) =       1.05
Statistics robust to heteroskedasticity           Prob > F        =     0.3137
                                                  R-squared       =     0.1403
                                                  Adj R-squared   =     0.1403
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.3575

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
             work |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |  -.0123582   .0120595    -1.02   0.314     -.036987    .0122706
                  |
            _cons |   .8231156   .0046633   176.51   0.000     .8135919    .8326393
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
        work | 3844907     5204654    .8183368   .3855667          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  1,379,728
Absorbing 2 HDFE groups                           F(   1,     30) =       0.99
Statistics robust to heteroskedasticity           Prob > F        =     0.3273
                                                  R-squared       =     0.0557
                                                  Adj R-squared   =     0.0556
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.4233

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
         high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |   .0193892   .0194717     1.00   0.327    -.0203772    .0591557
                  |
            _cons |   .2462926   .0083192    29.61   0.000     .2293025    .2632826
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    high_occ | 1379728     2008276    .2545766   .4356231          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout
(MWFE estimator converged in 6 iterations)

HDFE Linear regression                            Number of obs   =  3,844,907
Absorbing 2 HDFE groups                           F(   1,     30) =       2.70
Statistics robust to heteroskedasticity           Prob > F        =     0.1111
                                                  R-squared       =     0.0110
                                                  Adj R-squared   =     0.0110
                                                  Within R-sq.    =     0.0000
Number of clusters (prov)    =         31         Root MSE        =     0.1353

                                       (Std. Err. adjusted for 31 clusters in prov)
-----------------------------------------------------------------------------------
                  |               Robust
         high_occ |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
------------------+----------------------------------------------------------------
women#c.fine_6_20 |
               1  |   .0063315   .0038562     1.64   0.111     -.001544     .014207
                  |
            _cons |   .0164213   .0014912    11.01   0.000     .0133759    .0194667
-----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
               Absorbed FE | Categories  - Redundant  = Num. Coefs |
---------------------------+---------------------------------------|
                women#prov |        31          31           0    *|
   women#prov#c.year_birth |        31           0          31     |
     women#year#year_birth |       103           0         103    ?|
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation

    Variable |     Obs      Weight        Mean   Std. Dev.       Min        Max
-------------+-----------------------------------------------------------------
    high_occ | 3844907     5204654    .0188697   .1360647          0          1
/Users/Wei/Dropbox/Fertility/Results/tab_c9_a_f.xls
dir : seeout

. 
. restore 

. log close 
      name:  <unnamed>
       log:  /Users/Wei/Dropbox/Fertility/Results/census_results.log
  log type:  text
 closed on:  21 Jan 2020, 11:47:32
-------------------------------------------------------------------------------------------------
